package com.example.common.model;

import java.lang.reflect.Field;
import java.util.Date;
import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.IdType;
import com.example.common.base.BaseBean;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * 活动文章表(activity_article)
 *
 * @author 510
 * @version 1.0.0 2021-04-23
 */
@ApiModel(description = "活动文章表")
@TableName("activity_article")
public class ActivityArticle extends BaseBean {
    /** 版本号 */
    private static final long serialVersionUID = -4696071319693330437L;

//    {
//        Class<?> aClass = this.getClass();
//        Field[] fields = aClass.getDeclaredFields();
//        try {
//            for (Field field : fields) {
//                field.setAccessible(true);
//                if (!field.getName().equals("id")){
//                    if (field.getType() == String.class) {
//                        field.set(this, "null");
//                    }
//
//                    if (field.getType() == Integer.class) {
//                        field.set(this, 1);
//                    }
//
//                    if (field.getType() == Date.class) {
//                        field.set(this, new Date());
//                    }
//                }
//            }
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }

    @ApiModelProperty(value = "主键id")
    @TableId(type= IdType.AUTO)
    private Integer aId;

    @ApiModelProperty(value = "发布的用户id")
    private String userId;

    @ApiModelProperty(value = "发布的用户名称")
    private String userName;

    @ApiModelProperty(value = "发布的用户头像")
    private String userAvatarUrl;

    @ApiModelProperty(value = "文章关联的图片")
    private String activityPicUrl;

    @ApiModelProperty(value = "参加人数")
    private Integer joinNum;

    @ApiModelProperty(value = "收藏数")
    private Integer collectionNuum;

    @ApiModelProperty(value = "活动主题")
    private String title;

    @ApiModelProperty(value = "浏览，点击数")
    private Integer clicks;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date releaseTime;

    @ApiModelProperty(value = "活动开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date beginTime;

    @ApiModelProperty(value = "活动结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date endTime;

    @ApiModelProperty(value = "报名截止时间")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date cantJoinTime;

    @ApiModelProperty(value = "活动地址")
    private String destination;

    @ApiModelProperty(value = "活动内容介绍")
    private String content;

    @ApiModelProperty(value = "活动类型")
    private Integer type;

    @ApiModelProperty(value = "")
    private String createdBy;

    @ApiModelProperty(value = "")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date creationDate;

    @ApiModelProperty(value = "")
    private String lastUpdatedBy;

    @ApiModelProperty(value = "")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date lastUpdateDate;

    @ApiModelProperty(value = "删除标记 1是未删除 0是已删除")
    private Integer deleteFlag;

    /* This code was generated by TableGo tools, mark 1 end. */

    /* This code was generated by TableGo tools, mark 2 begin. */

    /**
     * 获取主键id
     * 
     * @return 主键id
     */
    public Integer getAId() {
        return this.aId;
    }

    /**
     * 设置主键id
     * 
     * @param aId
     *          主键id
     */
    public void setAId(Integer aId) {
        this.aId = aId;
    }

    /**
     * 获取发布的用户id
     * 
     * @return 发布的用户id
     */
    public String getUserId() {
        return this.userId;
    }

    /**
     * 设置发布的用户id
     * 
     * @param userId
     *          发布的用户id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取发布的用户名称
     * 
     * @return 发布的用户名称
     */
    public String getUserName() {
        return this.userName;
    }

    /**
     * 设置发布的用户名称
     * 
     * @param userName
     *          发布的用户名称
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取发布的用户头像
     * 
     * @return 发布的用户头像
     */
    public String getUserAvatarUrl() {
        return this.userAvatarUrl;
    }

    /**
     * 设置发布的用户头像
     * 
     * @param userAvatarUrl
     *          发布的用户头像
     */
    public void setUserAvatarUrl(String userAvatarUrl) {
        this.userAvatarUrl = userAvatarUrl;
    }

    /**
     * 获取文章关联的图片
     * 
     * @return 文章关联的图片
     */
    public String getActivityPicUrl() {
        return this.activityPicUrl;
    }

    /**
     * 设置文章关联的图片
     * 
     * @param activityPicUrl
     *          文章关联的图片
     */
    public void setActivityPicUrl(String activityPicUrl) {
        this.activityPicUrl = activityPicUrl;
    }

    /**
     * 获取参加人数
     * 
     * @return 参加人数
     */
    public Integer getJoinNum() {
        return this.joinNum;
    }

    /**
     * 设置参加人数
     * 
     * @param joinNum
     *          参加人数
     */
    public void setJoinNum(Integer joinNum) {
        this.joinNum = joinNum;
    }

    /**
     * 获取收藏数
     * 
     * @return 收藏数
     */
    public Integer getCollectionNuum() {
        return this.collectionNuum;
    }

    /**
     * 设置收藏数
     * 
     * @param collectionNuum
     *          收藏数
     */
    public void setCollectionNuum(Integer collectionNuum) {
        this.collectionNuum = collectionNuum;
    }

    /**
     * 获取活动主题
     * 
     * @return 活动主题
     */
    public String getTitle() {
        return this.title;
    }

    /**
     * 设置活动主题
     * 
     * @param title
     *          活动主题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取浏览，点击数
     * 
     * @return 浏览
     */
    public Integer getClicks() {
        return this.clicks;
    }

    /**
     * 设置浏览，点击数
     * 
     * @param clicks
     *          浏览
     */
    public void setClicks(Integer clicks) {
        this.clicks = clicks;
    }

    /**
     * 获取发布时间
     * 
     * @return 发布时间
     */
    public Date getReleaseTime() {
        return this.releaseTime;
    }

    /**
     * 设置发布时间
     * 
     * @param releaseTime
     *          发布时间
     */
    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }

    /**
     * 获取活动开始时间
     * 
     * @return 活动开始时间
     */
    public Date getBeginTime() {
        return this.beginTime;
    }

    /**
     * 设置活动开始时间
     * 
     * @param beginTime
     *          活动开始时间
     */
    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    /**
     * 获取活动结束时间
     * 
     * @return 活动结束时间
     */
    public Date getEndTime() {
        return this.endTime;
    }

    /**
     * 设置活动结束时间
     * 
     * @param endTime
     *          活动结束时间
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * 获取报名截止时间
     * 
     * @return 报名截止时间
     */
    public Date getCantJoinTime() {
        return this.cantJoinTime;
    }

    /**
     * 设置报名截止时间
     * 
     * @param cantJoinTime
     *          报名截止时间
     */
    public void setCantJoinTime(Date cantJoinTime) {
        this.cantJoinTime = cantJoinTime;
    }

    /**
     * 获取活动地址
     * 
     * @return 活动地址
     */
    public String getDestination() {
        return this.destination;
    }

    /**
     * 设置活动地址
     * 
     * @param destination
     *          活动地址
     */
    public void setDestination(String destination) {
        this.destination = destination;
    }

    /**
     * 获取活动内容介绍
     * 
     * @return 活动内容介绍
     */
    public String getContent() {
        return this.content;
    }

    /**
     * 设置活动内容介绍
     * 
     * @param content
     *          活动内容介绍
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取活动类型
     * 
     * @return 活动类型
     */
    public Integer getType() {
        return this.type;
    }

    /**
     * 设置活动类型
     * 
     * @param type
     *          活动类型
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 获取createdBy
     * 
     * @return createdBy
     */
    public String getCreatedBy() {
        return this.createdBy;
    }

    /**
     * 设置createdBy
     * 
     * @param createdBy
     */
    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    /**
     * 获取creationDate
     * 
     * @return creationDate
     */
    public Date getCreationDate() {
        return this.creationDate;
    }

    /**
     * 设置creationDate
     * 
     * @param creationDate
     */
    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    /**
     * 获取lastUpdatedBy
     * 
     * @return lastUpdatedBy
     */
    public String getLastUpdatedBy() {
        return this.lastUpdatedBy;
    }

    /**
     * 设置lastUpdatedBy
     * 
     * @param lastUpdatedBy
     */
    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    /**
     * 获取lastUpdateDate
     * 
     * @return lastUpdateDate
     */
    public Date getLastUpdateDate() {
        return this.lastUpdateDate;
    }

    /**
     * 设置lastUpdateDate
     * 
     * @param lastUpdateDate
     */
    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    /**
     * 获取删除标记 1是未删除 0是已删除
     * 
     * @return 删除标记 1是未删除 0是已删除
     */
    public Integer getDeleteFlag() {
        return this.deleteFlag;
    }

    /**
     * 设置删除标记 1是未删除 0是已删除
     * 
     * @param deleteFlag
     *          删除标记 1是未删除 0是已删除
     */
    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    /* This code was generated by TableGo tools, mark 2 end. */
}